<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
class BoxDeliver extends Model
{
    public $table = 'box_deliver';

    protected $fillable = [
        'delivery_at',
        'dign_at',
        'no',
        'name',
    ];

    public function getEstimateAtAttribute()
    {
        return date('Y-m-d',strtotime($this->attributes['estimate_at']));
    }

    public function getSignAtAttribute()
    {
        return date('Y-m-d',strtotime($this->attributes['sign_at']));
    }

}
